<?php require_once('header.php'); ?>
<?php //include_once('topwidget.php'); ?>

<div id="contentBox">
<?php include_once('sidebar.php'); ?>

<div id="content">
<h1>Search Results for Clients</h1>

<?php
	$clientsquery = "SELECT * FROM users WHERE users.typeid = 2";
	connection();
	$clients = mysql_query($clientsquery);

	while($client = mysql_fetch_array($clients)) {
		
?>
    <div class="content">
        <div class="resultHeader">
            <h2><a href="client.php?clientid=<?php echo $client['userid']; ?>"><?php echo $client['fullname']; ?></a><span class="addcon"><span class="address"><?php echo $client['address']; ?>, <?php echo $client['postal']; ?></span></span></h2>
            
            <div class="clearb"></div>
            <strong>Skills: </strong>
                <a href="#" class="obtSkill"><?php echo $client['skills']; ?></a>
        </div>
        <div class="description">
            	<?php echo $client['description']; ?><a href="client.php?clientid=<?php echo $client['userid']; ?>"> more</a>
        </div>
        <hr />
        <div class="clearb"></div>
    </div>
<?php } ?>
    
               
</div>
<div style="clear:both;"></div>

<?php //include_once('bottomwidget.php'); ?>
<?php include_once('footer.php'); ?>